package user;
import book.BookList;
import operate.IOperate;
public abstract class User {
    protected String name;
    protected int point;
    protected IOperate[] iOperates;
    public User(String name) {
        this.name = name;
    }
    public User() { }
    public abstract void menu(User user,BookList bookList);
    public void doOperate(User user,int num, BookList bookList)
    {
        iOperates[num].operate(user,bookList);
    }
    public int getPoint() { return point; }
    public void setPoint(int point) {
        this.point = point;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
}
